<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <title><@spring.message '站点配置' /></title>
<#include "/admin/main/include/link_head.ftl"/>
    <style type="text/css">
        .tabdiv {
            overflow: hidden;
        }

        .tabiframe {
            width: 100%;
            height: 92%;
        }
    </style>
</head>

<body class="jr-body">
<@tags.editBtns btns="close" />
<div class="easyui-tabs" data-options="fit:true,onSelect:tabSelect" style="margin-top: 50px;">
    <div title="<@spring.message '开发配置' />" class="tabdiv">
        <iframe id="iframe_0" src="" scrolling="auto" class="tabiframe" frameborder="0"></iframe>
    </div>
    <div title="<@spring.message '站点/公司菜单' />" class="tabdiv">
        <iframe id="iframe_1" src="" scrolling="auto" class="tabiframe" frameborder="0"></iframe>
    </div>
    <div title="<@spring.message '积分项' />" class="tabdiv">
        <iframe id="iframe_2" src="" scrolling="auto" class="tabiframe" frameborder="0"></iframe>
    </div>
    <div title="<@spring.message '数据字典' />" class="tabdiv">
        <iframe id="iframe_3" src="" scrolling="auto" class="tabiframe" frameborder="0"></iframe>
    </div>

</body>
</html>
<#include "/admin/main/include/link_foot.ftl"/>
<script type="text/javascript">
    function tabSelect(title, index) {
        var urlArr = [];
        urlArr.push("devSetting");
        urlArr.push("menuSetting");
        urlArr.push("scoreSetting");
        urlArr.push("websiteParamSetting");
        var $this = $("#iframe_" + index);
        var loaded = $this.attr("loaded");
        if (typeof(loaded) != 'undefined' && loaded == 'true') {//如果已加载过
            return;
        }
        $this.attr("src", urlArr[index]);
        $this.attr("loaded", "true");
    }
</script>